package deweb.cimaplanning.dto;

public class PlantsVersionsMonths {

	protected int plantVersionId;
	protected int plantId;
	protected String plantShortName;
	protected String plantDescription;
	protected int monthPeriodVersionId;
	protected int monthPeriodId;
	protected String monthShortName;
	protected String monthDescription;
	protected int month;
	protected int year;
	protected int versionId;
	/**
	 * @return the plantVersionId
	 */
	public int getPlantVersionId() {
		return plantVersionId;
	}
	/**
	 * @param plantVersionId the plantVersionId to set
	 */
	public void setPlantVersionId(int plantVersionId) {
		this.plantVersionId = plantVersionId;
	}
	/**
	 * @return the plantId
	 */
	public int getPlantId() {
		return plantId;
	}
	/**
	 * @param plantId the plantId to set
	 */
	public void setPlantId(int plantId) {
		this.plantId = plantId;
	}
	/**
	 * @return the plantShortName
	 */
	public String getPlantShortName() {
		return plantShortName;
	}
	/**
	 * @param plantShortName the plantShortName to set
	 */
	public void setPlantShortName(String plantShortName) {
		this.plantShortName = plantShortName;
	}
	/**
	 * @return the plantDescription
	 */
	public String getPlantDescription() {
		return plantDescription;
	}
	/**
	 * @param plantDescription the plantDescription to set
	 */
	public void setPlantDescription(String plantDescription) {
		this.plantDescription = plantDescription;
	}
	/**
	 * @return the monthPeriodVersionId
	 */
	public int getMonthPeriodVersionId() {
		return monthPeriodVersionId;
	}
	/**
	 * @param monthPeriodVersionId the monthPeriodVersionId to set
	 */
	public void setMonthPeriodVersionId(int monthPeriodVersionId) {
		this.monthPeriodVersionId = monthPeriodVersionId;
	}
	/**
	 * @return the monthPeriodId
	 */
	public int getMonthPeriodId() {
		return monthPeriodId;
	}
	/**
	 * @param monthPeriodId the monthPeriodId to set
	 */
	public void setMonthPeriodId(int monthPeriodId) {
		this.monthPeriodId = monthPeriodId;
	}
	/**
	 * @return the monthShortName
	 */
	public String getMonthShortName() {
		return monthShortName;
	}
	/**
	 * @param monthShortName the monthShortName to set
	 */
	public void setMonthShortName(String monthShortName) {
		this.monthShortName = monthShortName;
	}
	/**
	 * @return the monthDescription
	 */
	public String getMonthDescription() {
		return monthDescription;
	}
	/**
	 * @param monthDescription the monthDescription to set
	 */
	public void setMonthDescription(String monthDescription) {
		this.monthDescription = monthDescription;
	}
	/**
	 * @return the month
	 */
	public int getMonth() {
		return month;
	}
	/**
	 * @param month the month to set
	 */
	public void setMonth(int month) {
		this.month = month;
	}
	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}
	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}
	/**
	 * @return the versionId
	 */
	public int getVersionId() {
		return versionId;
	}
	/**
	 * @param versionId the versionId to set
	 */
	public void setVersionId(int versionId) {
		this.versionId = versionId;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + month;
		result = prime
				* result
				+ ((monthDescription == null) ? 0 : monthDescription.hashCode());
		result = prime * result + monthPeriodId;
		result = prime * result + monthPeriodVersionId;
		result = prime * result
				+ ((monthShortName == null) ? 0 : monthShortName.hashCode());
		result = prime
				* result
				+ ((plantDescription == null) ? 0 : plantDescription.hashCode());
		result = prime * result + plantId;
		result = prime * result
				+ ((plantShortName == null) ? 0 : plantShortName.hashCode());
		result = prime * result + plantVersionId;
		result = prime * result + versionId;
		result = prime * result + year;
		return result;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof PlantsVersionsMonths))
			return false;
		PlantsVersionsMonths other = (PlantsVersionsMonths) obj;
		if (month != other.month)
			return false;
		if (monthDescription == null) {
			if (other.monthDescription != null)
				return false;
		} else if (!monthDescription.equals(other.monthDescription))
			return false;
		if (monthPeriodId != other.monthPeriodId)
			return false;
		if (monthPeriodVersionId != other.monthPeriodVersionId)
			return false;
		if (monthShortName == null) {
			if (other.monthShortName != null)
				return false;
		} else if (!monthShortName.equals(other.monthShortName))
			return false;
		if (plantDescription == null) {
			if (other.plantDescription != null)
				return false;
		} else if (!plantDescription.equals(other.plantDescription))
			return false;
		if (plantId != other.plantId)
			return false;
		if (plantShortName == null) {
			if (other.plantShortName != null)
				return false;
		} else if (!plantShortName.equals(other.plantShortName))
			return false;
		if (plantVersionId != other.plantVersionId)
			return false;
		if (versionId != other.versionId)
			return false;
		if (year != other.year)
			return false;
		return true;
	}
}
